package com.wifipositioner.positioning;

import java.io.Serializable;
import java.util.HashMap;

import com.wifipositioner.measure.MeasuredPoint;

public class ReferencePoint extends HashMap<String, Double> implements Serializable{
	
	private String name;

	public ReferencePoint(MeasuredPoint measuredPoint) {
		this.name = measuredPoint.getName();
		
		for(String SSID : measuredPoint.getScanMap().keySet()){
			put(SSID, measuredPoint.getScanMap().get(SSID).getAvg());
		}
	}

	public String getName() {
		return name;
	}
	

}
